import { IMessageBase } from "../../Framework/MQ/IMessageBase";
import { MessageManager } from "../../Framework/MQ/MessageManager";
import { SerializeStream } from "../../Framework/Serialize/SerializeStream";
import { SEntityId } from "../Public/SEntityId";
import { SPlayerItem } from "../Public/SPlayerItem";
type int = number;
//class SMakeFunTargetInfo
    
    export  class SMakeFunTargetInfo extends IMessageBase
    {
        constructor(arg1: Boolean=false)
        {
            
            super();if (arg1) 
            {
                MessageManager.instance().regist(this);
            }
            return;
        }

        public /* override */ getType(): int
        {
            return this._type;
        }

        public /* override */ clone(): IMessageBase
        {
            return new SMakeFunTargetInfo();
        }

        public /* override */ __write(arg1: SerializeStream): void
        {
            this.toEntityId.__write(arg1);
            arg1.writeInt(this.bufferId);
            this.playerItem.__write(arg1);
            return;
        }

        public /* override */ __read(arg1: SerializeStream): void
        {
            this.toEntityId = new SEntityId();
            this.toEntityId.__read(arg1);
            this.bufferId = arg1.readInt();
            this.playerItem = new SPlayerItem();
            this.playerItem.__read(arg1);
            return;
        }

        public /* const */_type: int=12240;

        public /* var */toEntityId: SEntityId;

        public /* var */bufferId: int;

        public /* var */playerItem: SPlayerItem;

        public static /* var */_regist: SMakeFunTargetInfo;
    }

            SMakeFunTargetInfo._regist = new SMakeFunTargetInfo(true);
        